﻿using B.S.BaseData.Domain.Status;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace B.S.BaseData.Domain.MeetTable
{
	/// <summary>
	/// 会议表
	/// </summary>
	[Table("Meet")]
	public class Meet : BaseData
	{
		/// <summary>
		/// 会议ID
		/// </summary>
		[Key]
		public int MeetId { get; set; }
        /// <summary>
        /// 会议编号
        /// </summary>
        public string MeetNo { get; set; }
		/// <summary>
		/// 会议名称
		/// </summary>
		public string MeetName { get; set; }
		/// <summary>
		/// 会议类型编号
		/// </summary>
		public int MeetTypeId { get; set; }
        /// <summary>
        /// 会议开始时间
        /// </summary>
        public DateTime MeetStartedTime { get; set; }
		/// <summary>
		/// 会议室地点ID
		/// </summary>
        public int RoomAddressId { get; set; }
		/// <summary>
		/// 参会人员
		/// </summary>
        public string Participant { get; set; }
		/// <summary>
		/// 线上地址
		/// </summary>
        public string OnlineAddress { get; set; }
		/// <summary>
		/// 会议电话
		/// </summary>
        public string MeetPhone { get; set; }
		/// <summary>
		/// 会议内容
		/// </summary>
        public string MeetContent { get; set; }
		/// <summary>
		/// 主持人
		/// </summary>
        public string Host { get; set; }
		/// <summary>
		/// 记录人
		/// </summary>
        public string Record { get; set; }
		/// <summary>
		/// 决策人
		/// </summary>
        public string DecisionMaker { get; set; }
        /// <summary>
        /// 会议状态
        /// </summary>
        public MeetStatus MeetState { get; set; }
		/// <summary>
		/// 会议状态名称
		/// </summary>
		public string MeetStateName { get
			{
				if (MeetState == MeetStatus.未开始) { return "未开始"; }
				else if (MeetState == MeetStatus.进行中) { return "进行中"; }
				else if (MeetState == MeetStatus.已结束) { return "已结束"; }
				else { return "已取消"; }
			}
		}

    }
}